package org.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Yafei Song
 * @since 2022-08-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jt_message")
@ApiModel(value="JtMessageEntity对象", description="")
public class MessageEntity extends Model<MessageEntity> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableField("id")
    private Long id;

    @ApiModelProperty(value = "消息id")
    @TableField("message_id")
    private Long messageId;

    @ApiModelProperty(value = "消息体属性")
    @TableField("properties")
    private Long properties;

    @ApiModelProperty(value = "协议版本号")
    @TableField("protocol_version")
    private Integer protocolVersion;

    @ApiModelProperty(value = "终端手机号")
    @TableField("client_id")
    private Long clientId;

    @ApiModelProperty(value = "流水号")
    @TableField("serial_no")
    private Long serialNo;

    @ApiModelProperty(value = "消息包总数")
    @TableField("package_total")
    private Integer packageTotal;

    @ApiModelProperty(value = "包序号")
    @TableField("package_no")
    private Long packageNo;

    @ApiModelProperty(value = "创建人")
    @TableField("created")
    private String created;

    @ApiModelProperty(value = "创建时间")
    @TableField("created_date")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "更新人")
    @TableField("updater")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("updater_date")
    private LocalDateTime updaterDate;

    @ApiModelProperty(value = "删除状态 0-未删除 1=已删除")
    @TableField("del_flag")
    private Integer delFlag;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
